cmake_minimum_required(VERSION 2.6)
project(syoth)
set(SRC_LIST sy_core.cpp sy_main.cpp)
find_package(GLUT)
if (GLUT_FOUND)
	include_directories(${GLUT_INCLUDE_DIR})
	link_directories(CORELIBS ${GLUT_LIBRARY_DIR})
add_executable(syoth ${SRC_LIST})
target_link_libraries(syoth ${GLUT_glut_LIBRARY})
INSTALL_PROGRAMS(/bin FILES syoth)
endif (GLUT_FOUND)
if (NOT GLUT_FOUND)
	message(FATAL_ERROR "GLUT NOT FOUND")
endif (NOT GLUT_FOUND)
